#pragma  once 
#include "afxdb.h"
#include "DBConnection.h"
class CDB;
class CDBRecordset
{

public:
	CDBRecordset();

	~CDBRecordset();

	BOOL GetFieldValue(TCHAR *cFieldName, CString &strResult);

	bool	GetFieldValue(int iField, CString &strResult);

	BOOL GetVarIntValue(TCHAR *cFieldName, int *iResult) ;

	BOOL IsEOF();

	BOOL OpenTable(CString &strSql);


	void MoveNext();

	void  CloseRecordSet();

    CRecordset m_rs;

};